package com.self.distributor;

/**
 * 作者：tianjiayuan
 * 创建时间：2018-06-11 11:29
 * 类描述：
 * 修改人：
 * 修改时间：
 */
public class Test {

    static class ThreadA extends Thread {

        private LockService lockService;

        public ThreadA(LockService lockService) {
            this.lockService = lockService;
        }
        @Override
        public void run() {
            lockService.seckill();
        }
    }

    public static void main(String[] args) {
        LockService lockService = new LockService();
        for (int i=0; i < 500; i++) {
            new ThreadA(lockService).start();
        }
    }
}
